package com.kunya.product.service.specofocation;

import com.kunya.common.common.ServerResponse;
import com.kunya.product.po.ProductSpecification;
import com.kunya.product.vo.ProductSpecificationVo;


import java.util.List;

/**
 * @author zp
 * @Description:
 * @date 2018/6/19 11:06
 */
public interface IProductSpecificationService {

    /**
     * 添加商品规格详情
     * @param productId
     * @param kindAttrIds
     * @param specificationIds
     * @param tablePrefix
     * @return
     */
    public ServerResponse addProductSpecification(Long productId, List<Long> kindAttrIds, List<Long> specificationIds,String tablePrefix);

    /**
     * @author zp
     * @Description:根据商品id获取商品规格属性表实体volist
     * @param productId 商品id tableprefix 表前缀
     * @date 2018/7/3 14:55
     */
    ServerResponse<List<ProductSpecificationVo>> getProductSpecById(Long productId, Byte status, String tableprefix);

    /**
     * 通过商品ID删除商品属性
     * @param productId
     * @param tablePrefix
     * @return
     */
    ServerResponse deleteProductSpecificationByProductId(Long productId,String tablePrefix);

}
